package com.redis.seckill.mq.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;

/**
 * @date 2020/10/29 9:05
 */
@Configuration
public class ActiveMQConfig {

    public static final String QUEUE_NAME = "seckill-queue";

    @Bean
    public Queue queue(){
        return new ActiveMQQueue(QUEUE_NAME);
    }
}
